module.exports = {
  publicPath: "./",
  outputDir: "new-block",
  productionSourceMap: false,
  css: {
    loaderOptions: {
      // pass options to sass-loader
      sass: {
        data: `@import "@/assets/css/variable.scss";`
      }
    }
  },
  devServer: {
    proxy: {
      "/coin": {
        target: "https://www.bitfeel.cn/",
        pathRewrite: {
          "^/coin": ""
        }
      },
      "/api": {
        target: "https://blockchain.ieasydog.com/node",
        pathRewrite: {
          "^/api": ""
        }
      },
      "/esdb": {
        target: "https://blockchain.ieasydog.com/data/bityuan",
        pathRewrite: {
          "^/esdb": ""
        }
      },
    }
  }
};